package com.qilin.hscs.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    SYSTEM_ERROR(-1, "系统错误"),

    NO_HANDLER(404, "找不到页面"),

    SERVER_ERROR(500, "服务器错误"),

    SUCCESS(0, ""),

    PARAM_ERROR(1,"参数不正确"),

    USER_IS_REGISTER(10,"手机号已被注册"),

    VERIFICATIONCODE_ERROR(11,"验证码错误"),

    INVALID_TOKEN(19, "token不合法"),

    USER_NOT_FOUND(12,"用户不存在"),

    HOST_NOT_FOUND(13,"主机不存在"),

    USER_HOST_NOT_FOUND(14,"用户未绑定该主机"),

    IS_USE_ERROR(15,"主机使用状态错误"),

    N0_PERMISSSION(16,"权限不够"),

    NOT_ADMIN(17,"不是管理员"),

    USER_HOST_IS_BIND(18,"用户已绑定该主机"),

    LOGIN_FAILD(20,"登陆失败"),

    ACCOUNT_LOCKED(21,"账户已被锁定"),

    VALIDATIONCODE_ERROR(22,"验证码错误"),

    VALIDATIONCODE_TIMEOUT(23,"验证码不存在或已过期"),

    SMS_ERROR(24,"短信错误"),
    ;

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
